package org.xczy.boot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.xczy.boot.service.TestService;

import javax.annotation.Resource;

@RestController
@RequestMapping("/test")
public class TestController {

  @Resource
  private TestService testService;

  @GetMapping("/{id}")
  public int getInt(@PathVariable("id") int id){
    return testService.getInt(id);
  }
}
